<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label  class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8" style="margin-top:7px;">
            <input type="text" class="form-control" id="username" name="row[username]" value="{$row.username|htmlentities}" data-rule="required;username" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pid" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[pid]" type="text" value="{$row.pid|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('SchoolId')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-schoolid" data-source="school/index" data-field="agent_school_name" class="form-control selectpage" name="row[schoolid]" type="text" value="{$row.schoolid|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('WithUserId')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-userid" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[userid]" type="text" value="{$row.userid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="email" class="form-control" id="email" name="row[email]" value="{$row.email|htmlentities}" data-rule="required;email" />
        </div>
    </div>
    <div class="form-group">
        <label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nickname" name="row[nickname]" autocomplete="off" value="{$row.nickname|htmlentities}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="password" class="form-control" id="password" name="row[password]" autocomplete="new-password" value="" data-rule="password" />
        </div>
    </div>

    <div class="form-group">
        <label for="business_name" class="control-label col-xs-12 col-sm-2">{:__('BusinessName')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="business_name" name="row[business_name]" value="{$row.business_name|htmlentities}" autocomplete="off" value="" data-rule="" />
        </div>
    </div>
    <div class="form-group">
        <label for="business_corporation" class="control-label col-xs-12 col-sm-2">{:__('BusinessCorporation')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="business_corporation" name="row[business_corporation]" value="{$row.business_corporation|htmlentities}" autocomplete="off" value="" data-rule="" />
        </div>
    </div>
    <div class="form-group">
        <label for="business_phone" class="control-label col-xs-12 col-sm-2">{:__('BusinessPhone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="business_phone" name="row[business_phone]" value="{$row.business_phone|htmlentities}" autocomplete="off" value="" data-rule="" />
        </div>
    </div>


    <div class="form-group">
        <label for="c-business_license" class="control-label col-xs-12 col-sm-2">{:__('BusinessLicense')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-business_license" data-rule="" class="form-control" size="50" name="row[business_license]" type="text" value="{$row.business_license}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-business_license" class="btn btn-danger plupload" data-input-id="c-business_license" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-business_license"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-business_license" class="btn btn-primary fachoose" data-input-id="c-business_license" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-business_license"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-business_license"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-business_corporation_image1" class="control-label col-xs-12 col-sm-2">{:__('BusinessCorporationImage1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-business_corporation_image1" data-rule="" class="form-control" size="50" name="row[business_corporation_image1]" type="text" value="{$row.business_corporation_image1}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-business_corporation_image1" class="btn btn-danger plupload" data-input-id="c-business_corporation_image1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-business_corporation_image1"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-business_corporation_image1" class="btn btn-primary fachoose" data-input-id="c-business_corporation_image1" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-business_corporation_image1"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-business_corporation_image1"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-business_corporation_image2" class="control-label col-xs-12 col-sm-2">{:__('BusinessCorporationImage2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-business_corporation_image2" data-rule="" class="form-control" size="50" name="row[business_corporation_image2]" type="text" value="{$row.business_corporation_image2}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-business_corporation_image2" class="btn btn-danger plupload" data-input-id="c-business_corporation_image2" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-business_corporation_image2"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-business_corporation_image2" class="btn btn-primary fachoose" data-input-id="c-business_corporation_image2" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-business_corporation_image2"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-business_corporation_image2"></ul>
        </div>
    </div>
    
    
    <div class="form-group">
        <label for="c-business_corporation_image3" class="control-label col-xs-12 col-sm-2">{:__('BusinessCorporationImage3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-business_corporation_image3" data-rule="" class="form-control" size="50" name="row[business_corporation_image3]" type="text" value="{$row.business_corporation_image3}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-business_corporation_image3" class="btn btn-danger plupload" data-input-id="c-business_corporation_image3" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-business_corporation_image3"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-business_corporation_image3" class="btn btn-primary fachoose" data-input-id="c-business_corporation_image3" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-business_corporation_image3"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-business_corporation_image3"></ul>
        </div>
    </div>


    <div class="form-group">
        <label for="c-door_photo_image" class="control-label col-xs-12 col-sm-2">{:__('DoorPhotoImage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-door_photo_image" data-rule="" class="form-control" size="50" name="row[door_photo_image]" type="text" value="{$row.door_photo_image}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-door_photo_image" class="btn btn-danger plupload" data-input-id="c-door_photo_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-door_photo_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-door_photo_image" class="btn btn-primary fachoose" data-input-id="c-door_photo_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-door_photo_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-door_photo_image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="apply_reply" class="control-label col-xs-12 col-sm-2">{:__('ApplyReply')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[apply_reply]" class="form-control" data-rule="" rows="5">{$row.apply_reply|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('ApplyStatus')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[apply_status]', ['0'=>__('ApplyStatus 0'), '1'=>__('ApplyStatus 1'), '2'=>__('ApplyStatus 2')], $row['apply_status'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('TradeModel')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[trade_model]', ['0'=>__('TradeModel 0'), '1'=>__('TradeModel 1'), '2'=>__('TradeModel 2')], $row['trade_model'])}
        </div>
    </div>

    <!--编辑企业基本信息   end-->

    <div class="form-group">
        <label for="loginfailure" class="control-label col-xs-12 col-sm-2">{:__('Loginfailure')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" id="loginfailure" name="row[loginfailure]" value="{$row.loginfailure}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>